package view

import (
	"gitee.com/chenxuan520/npyhomework/internal/service"
	"github.com/gin-gonic/gin"
)

func InitRoute(c *gin.Engine) {
	c.POST("/data", service.GetData)
	c.POST("/login", service.Login)
	c.POST("/oper", service.UpdateMicroComputer)
	c.POST("/sql", service.UpdateSql)
	c.StaticFile("/", "./dist/index.html")
	c.Static("/dist", "./dist")
}
